import React from 'react'
import { useLocation } from 'react-router-dom'

export default function Two() {
  console.log(useLocation())
  const { state } = useLocation()
  if (!state) {
    return null;
  }
  return (
    <div>
      <h3>Two</h3>
      <p>a:{state.a}</p>
    </div>
  )
}
